

# initialize Redis connection settings
REDIS_HOST = "localhost"
REDIS_PORT = 6379
REDIS_DB = 0
 
# initialize constants used to control image spatial dimensions and
# data type
IMAGE_WIDTH = 224
IMAGE_HEIGHT = 224
IMAGE_CHANS = 3
IMAGE_DTYPE = "float32"
 
# initialize constants used for server queuing
IMAGE_QUEUE = "image_queue"
BATCH_SIZE = 32
SERVER_SLEEP = 0.25
CLIENT_SLEEP = 0.25

'''
global user_h
global user_w

def set_height(value):
    global user_h
    user_h = value

def set_width(value):
    global user_w
    user_w = value

def get_height():
    global user_h
    return user_h

def get_width():
    global user_w
    return user_w
'''
